import { User, Campsite, Post, Comment, Message, Conversation } from './types';

// 模拟用户数据
export const mockUsers: User[] = [
  {
    id: '1',
    username: 'camping_lover',
    nickname: '露营达人',
    avatar: 'https://picsum.photos/100/100?random=1',
    bio: '热爱户外，享受自然的美好时光',
    followersCount: 1234,
    followingCount: 567,
    postsCount: 89,
    createdAt: '2024-01-15T08:00:00Z'
  },
  {
    id: '2',
    username: 'nature_explorer',
    nickname: '自然探索者',
    avatar: 'https://picsum.photos/100/100?random=2',
    bio: '用镜头记录大自然的每一个瞬间',
    followersCount: 2345,
    followingCount: 123,
    postsCount: 156,
    createdAt: '2024-02-20T10:30:00Z'
  },
  {
    id: '3',
    username: 'outdoor_family',
    nickname: '户外一家人',
    avatar: 'https://picsum.photos/100/100?random=3',
    bio: '带着孩子一起探索世界',
    followersCount: 890,
    followingCount: 234,
    postsCount: 67,
    createdAt: '2024-03-10T14:15:00Z'
  }
];

// 模拟营地数据
export const mockCampsites: Campsite[] = [
  {
    id: '1',
    name: '星空营地',
    description: '位于山顶的绝佳观星地点，远离城市光污染，是天文爱好者的天堂。营地设施完善，提供帐篷租赁服务。',
    images: [
      'https://picsum.photos/400/300?random=10',
      'https://picsum.photos/400/300?random=11',
      'https://picsum.photos/400/300?random=12'
    ],
    location: {
      latitude: 39.9042,
      longitude: 116.4074,
      address: '北京市怀柔区雁栖湖畔',
      province: '北京市',
      city: '怀柔区'
    },
    facilities: ['停车场', '洗手间', '淋浴间', '烧烤区', '篝火台', 'WiFi'],
    price: {
      min: 80,
      max: 150,
      unit: '元/晚'
    },
    rating: 4.8,
    reviewCount: 234,
    tags: ['观星', '山景', '安静', '设施完善'],
    contact: {
      phone: '400-123-4567',
      wechat: 'starcamp2024'
    },
    openTime: '全年开放 24小时',
    createdAt: '2024-01-01T00:00:00Z'
  },
  {
    id: '2',
    name: '湖畔露营基地',
    description: '紧邻清澈湖水的露营地，可以钓鱼、划船，享受水上活动的乐趣。周围环境优美，空气清新。',
    images: [
      'https://picsum.photos/400/300?random=13',
      'https://picsum.photos/400/300?random=14',
      'https://picsum.photos/400/300?random=15'
    ],
    location: {
      latitude: 40.0583,
      longitude: 116.6056,
      address: '北京市密云区密云水库',
      province: '北京市',
      city: '密云区'
    },
    facilities: ['停车场', '洗手间', '淋浴间', '餐厅', '商店', '船只租赁'],
    price: {
      min: 100,
      max: 200,
      unit: '元/晚'
    },
    rating: 4.6,
    reviewCount: 189,
    tags: ['湖景', '钓鱼', '划船', '家庭友好'],
    contact: {
      phone: '400-234-5678'
    },
    openTime: '4月-10月 6:00-22:00',
    createdAt: '2024-02-01T00:00:00Z'
  }
];

// 模拟帖子数据
export const mockPosts: Post[] = [
  {
    id: '1',
    title: '星空下的完美夜晚',
    content: '昨晚在星空营地度过了难忘的一夜，满天繁星真的太美了！推荐给所有喜欢观星的朋友们。记得带上望远镜哦～',
    images: [
      'https://picsum.photos/400/300?random=20',
      'https://picsum.photos/400/300?random=21'
    ],
    author: mockUsers[0],
    campsite: {
      id: '1',
      name: '星空营地'
    },
    tags: ['观星', '夜景', '推荐'],
    likesCount: 156,
    commentsCount: 23,
    sharesCount: 12,
    isLiked: false,
    isCollected: true,
    createdAt: '2024-08-18T20:30:00Z',
    updatedAt: '2024-08-18T20:30:00Z'
  },
  {
    id: '2',
    title: '湖边的清晨',
    content: '早起看日出，湖水波光粼粼，空气格外清新。这就是我爱露营的原因，能够如此贴近大自然。',
    images: [
      'https://picsum.photos/400/300?random=22',
      'https://picsum.photos/400/300?random=23',
      'https://picsum.photos/400/300?random=24'
    ],
    author: mockUsers[1],
    campsite: {
      id: '2',
      name: '湖畔露营基地'
    },
    tags: ['日出', '湖景', '清晨'],
    likesCount: 89,
    commentsCount: 15,
    sharesCount: 8,
    isLiked: true,
    isCollected: false,
    createdAt: '2024-08-17T06:15:00Z',
    updatedAt: '2024-08-17T06:15:00Z'
  },
  {
    id: '3',
    title: '亲子露营的快乐时光',
    content: '带着孩子们第一次露营，他们玩得特别开心！篝火晚会、烤棉花糖、讲故事，这些美好的回忆会伴随他们一生。',
    images: [
      'https://picsum.photos/400/300?random=25'
    ],
    author: mockUsers[2],
    tags: ['亲子', '篝火', '回忆'],
    likesCount: 234,
    commentsCount: 45,
    sharesCount: 28,
    isLiked: true,
    isCollected: true,
    createdAt: '2024-08-16T19:45:00Z',
    updatedAt: '2024-08-16T19:45:00Z'
  }
];

// 模拟评论数据
export const mockComments: Comment[] = [
  {
    id: '1',
    content: '太美了！我也想去这个营地',
    author: mockUsers[1],
    postId: '1',
    likesCount: 12,
    isLiked: false,
    createdAt: '2024-08-18T21:00:00Z'
  },
  {
    id: '2',
    content: '请问这个营地需要提前预订吗？',
    author: mockUsers[2],
    postId: '1',
    likesCount: 5,
    isLiked: false,
    createdAt: '2024-08-18T21:15:00Z'
  }
];

// 模拟会话数据
export const mockConversations: Conversation[] = [
  {
    id: '1',
    type: 'private',
    title: '露营达人',
    avatar: mockUsers[0].avatar,
    participants: [mockUsers[0]],
    unreadCount: 2,
    updatedAt: '2024-08-18T22:30:00Z'
  },
  {
    id: '2',
    type: 'group',
    title: '星空营地群',
    avatar: 'https://picsum.photos/100/100?random=30',
    participants: mockUsers,
    unreadCount: 0,
    updatedAt: '2024-08-18T20:15:00Z'
  },
  {
    id: '3',
    type: 'system',
    title: '系统消息',
    participants: [],
    unreadCount: 1,
    updatedAt: '2024-08-18T18:00:00Z'
  }
];

// 模拟消息数据
export const mockMessages: Message[] = [
  {
    id: '1',
    type: 'text',
    content: '你好！看到你的星空营地分享，请问那里的设施怎么样？',
    sender: mockUsers[1],
    conversationId: '1',
    isRead: false,
    createdAt: '2024-08-18T22:30:00Z'
  },
  {
    id: '2',
    type: 'text',
    content: '设施很不错的，洗手间和淋浴间都很干净，还有烧烤区可以用',
    sender: mockUsers[0],
    conversationId: '1',
    isRead: true,
    createdAt: '2024-08-18T22:25:00Z'
  }
];